package com.atguigu.mvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author 陆小根
 * date: 2022/04/30
 * Description:
 * SpringMVC视图
 */
@Controller
public class ViewController {

  @RequestMapping("/testThymeleafView")
  public String testThymeleafView() {
    return "success";
  }

  @RequestMapping("/testForward")
  public String testForward() {
    return "forward:/testThymeleafView";
  }

  @RequestMapping("/testRedirect")
  public String testRedirect() {
    return "redirect:/testThymeleafView";
  }

}
